<template>
    <div>
        <div class="title">
            周末去哪儿
        </div>
            <ul>
                <router-link
                tag="li"
                :to="'/weekendDetail/' + item.id"
                v-for="item of list"
                :key="item.id"
                class="item border-bottom">
                    <img class="item-img" :src="item.imgUrl" alt="">
                    <p class="item-title">{{item.title}}</p>
                    <p class="item-desc">{{item.desc}}</p>
                </router-link>
            </ul>
    </div>
</template>

<script>
export default {
    name: 'HomeWeekend',
    props: {
        list: Array
    },
    data () {
        return {
            showWeekend: true
        }
    }
}
</script>

<style lang="stylus" scoped>
    @import '~styles/mixins.styl'
    .title
        line-height .8rem
        background-color #eee
        text-indent .2rem
        font-weight 900
    .item
        height 4rem
        overflow hidden
        margin-bottom .1rem
        .item-img
            width 100%
        .item-title
            line-height .54rem
            font-size .28rem
            margin-top .1rem
            margin-left .3rem
            color #666
            ellipsis()
        .item-desc
            line-height .4rem
            color #777
            font-size .26rem
            margin-left .3rem
            ellipsis()
        .item-btn
            background-color #ff9300
            padding 0 .2rem
            margin-top .2rem
            border-radius .06rem
            color #fff
            line-height .44rem
</style>
